package com.yuyou.tas.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.tas.service.api.admin.entity.AuthUserRoleRelation;

@Mapper
public interface AuthUserRoleRelationMapper {
    int deleteByPrimaryKey(Long id);

    int deleteByUserId(Long userId);

    int insert(AuthUserRoleRelation record);

    int insertSelective(AuthUserRoleRelation record);

    AuthUserRoleRelation selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AuthUserRoleRelation record);

    int updateByPrimaryKey(AuthUserRoleRelation record);
    
    int deleteByUserRole(@Param(value = "userId")Long userId, @Param(value = "roleId")int roleId);
    
    List<AuthUserRoleRelation> findByRole7Organ(@Param(value = "roleIds")List<Long> roleIds, @Param(value = "authOrganizationId")long authOrganizationId);
    
    int delByIds(@Param(value = "ids")List<Long> ids);

}